package PAT.乙.模拟;

import java.util.Scanner;

/**
 * 害死人不偿命的猜想
 *
 * @author yang
 * @date 2021/12/13
 */
public class 害死人不偿命的猜想 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int res = 0;
        while (n != 1) {
            res++;
            if (n % 2 == 0) {
                n /= 2;
            } else {
                n = (3 * n + 1) / 2;
            }
        }
        System.out.println(res);
    }
}
